package com.wfg.blog.dao.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
//评论
public class Comment {
    /** 评论id*/
    //防止前端 精度丢失 把id转为string
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /** 内容*/

    private String content;
    /** 评论的时间*/
    private Long createDate;
    /** 评论的文章*/
    @JsonSerialize(using = ToStringSerializer.class)
    private Long articleId;


    /** 谁评论的*/
    private Long authorId;
    /** 评论的评论*/
    private Long parentId;
    /** 谁评论的评论*/
    private Long toUid;
    /** 评论第几层*/
    private Integer level;
}